package com.mall.dao.custom;

import com.mall.dao.generator.FavoriteMapper;
import com.mall.entity.Favorite;

import java.util.List;

public interface CtFavoriteMapper extends FavoriteMapper {

    List<Favorite> selectFavoriteByUserId(Integer userId);

    Favorite selectFavoriteByGoodsIdAndUserId(Integer goodsId,Integer userId);

    int deleteByGoodsIdAndUserId(Integer goodsId, Integer userId);
}